// vite.config.ts
import { defineConfig } from "file:///D:/sc-class/neighborhood/neighbourhood/admin/neighborhood-vue3-admin/node_modules/.pnpm/vite@5.4.20_@types+node@22.18.6/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/sc-class/neighborhood/neighbourhood/admin/neighborhood-vue3-admin/node_modules/.pnpm/@vitejs+plugin-vue@5.2.4_vi_7fdb5ba8ca832b04d9b67948f2a92fdb/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import Components from "file:///D:/sc-class/neighborhood/neighbourhood/admin/neighborhood-vue3-admin/node_modules/.pnpm/unplugin-vue-components@0.2_922098b7bdf4d00129fb52a2f5547963/node_modules/unplugin-vue-components/dist/vite.js";
import AutoImport from "file:///D:/sc-class/neighborhood/neighbourhood/admin/neighborhood-vue3-admin/node_modules/.pnpm/unplugin-auto-import@0.18.6_c2fddaef1acb4f33cd4f57274bcb5121/node_modules/unplugin-auto-import/dist/vite.js";
import { ElementPlusResolver } from "file:///D:/sc-class/neighborhood/neighbourhood/admin/neighborhood-vue3-admin/node_modules/.pnpm/unplugin-vue-components@0.2_922098b7bdf4d00129fb52a2f5547963/node_modules/unplugin-vue-components/dist/resolvers.js";
import { VantResolver } from "file:///D:/sc-class/neighborhood/neighbourhood/admin/neighborhood-vue3-admin/node_modules/.pnpm/unplugin-vue-components@0.2_922098b7bdf4d00129fb52a2f5547963/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_dirname = "D:\\sc-class\\neighborhood\\neighbourhood\\admin\\neighborhood-vue3-admin";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver(), VantResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver(), VantResolver()]
    })
  ],
  resolve: {
    alias: {
      "~": path.resolve(__vite_injected_original_dirname, "./"),
      "@": path.resolve("src")
    }
  },
  server: {
    port: 3123,
    proxy: {
      "/api": {
        target: "http://localhost:82",
        // 凡是遇到 /api 路径的请求，都映射到 target 属性
        changeOrigin: true,
        rewrite: (path2) => path2.replace(/^\/api/, "")
        // 重写 api 为 空，就是去掉它
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxzYy1jbGFzc1xcXFxuZWlnaGJvcmhvb2RcXFxcbmVpZ2hib3VyaG9vZFxcXFxhZG1pblxcXFxuZWlnaGJvcmhvb2QtdnVlMy1hZG1pblwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcc2MtY2xhc3NcXFxcbmVpZ2hib3Job29kXFxcXG5laWdoYm91cmhvb2RcXFxcYWRtaW5cXFxcbmVpZ2hib3Job29kLXZ1ZTMtYWRtaW5cXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Q6L3NjLWNsYXNzL25laWdoYm9yaG9vZC9uZWlnaGJvdXJob29kL2FkbWluL25laWdoYm9yaG9vZC12dWUzLWFkbWluL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnXHJcbmltcG9ydCBwYXRoIGZyb20gJ3BhdGgnXHJcbmltcG9ydCBDb21wb25lbnRzIGZyb20gJ3VucGx1Z2luLXZ1ZS1jb21wb25lbnRzL3ZpdGUnO1xyXG5pbXBvcnQgQXV0b0ltcG9ydCBmcm9tICd1bnBsdWdpbi1hdXRvLWltcG9ydC92aXRlJ1xyXG5pbXBvcnQgeyBFbG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